{% extends 'base.html' %}
{% block jsAndCss %}
    <script language="javascript" src="/static/js/Register2.js"></script>
    <link rel="stylesheet" href="/static/css/regedit.css">
{% endblock %}
{% block main %}
    <!--主体内容开始-->
    <div class="main">
        <div class="abLogin register">
            <h1 class="login_tab">用户登录</h1>
            <div class="right">
                <div class="to_reg">没有帐号？<a href="/pub/reg/" class="fb">立即注册</a></div>
                {% include "include/pub/thirdLogin.html" %}
            </div>
            <div class="left">
                <form method="post" action="/pub/login/?next={{NEXT}}" name="loginForm" onsubmit="return checkLoginForm()">
                    {% csrf_token %}
{#                    <div style="display:none" id="bizTipDiv">请使用写字楼注册帐号和密码登录，登录后您将进入商户营销中心。</div>#}
                    <fieldset>
                        <div class="login_row">
                            <label>{{ form.username.label }}</label>
                            <div class="rMsg_bg">
                                {{ form.username }}
                                <span id="uname" style="display:none"></span>
                                <span class="tip"></span>
                            </div>
                        </div>
                        <div class="login_row">
                            <label>{{ form.password.label }}</label>
                            <div class="rMsg_bg">
                                {{ form.password }}
                                <span id="pd" style="display:none"></span>
                                <span class="tip"></span>
                            </div>
                        </div>
                        <div class="login_row">
                            <label>验证码</label>
                            <div class="rMsg_bg">
                                <input type="text" onblur="checkAuthnum(this)" name="verifyCode" class="txt3" id="verifyCode" maxlength="4" size="4"/>
                                <span style="display:none" id="vnmsg"></span>
                                <span class="tip"></span>
                            </div>
                        </div>
                        <div class="login_row">
                            <label></label>
                            <div class="rMsg_bg">
                                <img onmouseover="this.style.cursor='hand';" title="看不清楚,换一张" id='codeImg' src="/pub/verifyCode/"/>
                                <a id="changeCheckCode" href="javascript:reloadVerifycode();">看不清,换一张</a>
                            </div>
                        </div>
                        <div class="pt5">
                            <label>&nbsp;</label>&nbsp;&nbsp;&nbsp;
                            <input type="checkbox" checked="checked" value="1" name="r2" class="checkbox">
                            <span class="f12">下次自动登录</span>
                            <span class="grey">&nbsp;|&nbsp;</span>
                            <a href="forgetPwd.html" class="f12">忘记密码？</a>
                        </div>
                        <div class="login_row mt15">
                            <label>&nbsp;</label>&nbsp;
                            <input type="submit" class="redBtn" value="登 录" id="loginBtn">
                            <input type="hidden" value="" name="dest">
                            <input type="hidden" value="" name="backurl">
                        </div>
                    </fieldset>
                </form>
            </div>
        </div>
        <div class="clear"></div>
    </div>
    <!--主体内容结束-->
{% endblock %}
